package com.reggie.util;

import org.springframework.util.AntPathMatcher;

public class PatchMatchUtil {
    // 路径匹配器
    public static final AntPathMatcher PATH_MATCHER = new AntPathMatcher();

    public static boolean check(String[] uris,String requestUri) {
        for (String uri : uris) {
            if (PATH_MATCHER.match(uri,requestUri)) {
                return true;
            }
        }
        return false;
    }
}
